package com.lebang.medicalInquiry.constant;

/**
 * @version V1.0
 * @author: zpc
 * @date:
 */
public enum MessageAckTypeEnum {

    // 消息类型相关
    private_ack_message("private_ack_message","私聊消息的ack"),
    un_read_ack_message("un_read_ack_message","未读消息推送的ack"),
    chat_content_list_message("chat_content_list_message","聊天内容列表的ack"),

    ;
    private String type;
    private String name;


    MessageAckTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public static MessageAckTypeEnum getByType(String type) {
        MessageAckTypeEnum[] values = MessageAckTypeEnum.values();
        for (MessageAckTypeEnum messageTypeEnum:values){
            if(messageTypeEnum.getType().equals(type)){
                return messageTypeEnum;
            }
        }
        return null;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
